package com.yuantu.judiciary.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 短信验证表单
 *
 * @author syw
 * @since 2023-06-08
 **/
@Data
@ApiModel("短信验证表单")
public class VerifyCodeForm {
    @NotBlank
    @ApiModelProperty("手机号")
    private String phone;
    @NotBlank
    @ApiModelProperty("验证码")
    private String code;
    @NotNull
    @ApiModelProperty("关联企业id")
    private Long organizationId;

    public VerifyCodeForm (String phone, String code) {
        this.phone = phone;
        this.code = code;
    }
}
